ComponentOne Xamarin.Android
InsertAsync Method (C1HierarchicalCollectionView<T>)


C1.CollectionView Assembly > C1.CollectionView Namespace > C1HierarchicalCollectionView<T> Class : InsertAsync Method
The index where the item will be inserted.
The item to be inserted.
Inserts the specified item at the specified index in the collection.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(C1.CollectionView.C1HierarchicalCollectionView`1/d__30)> 
Public Overridable Function InsertAsync( _ 
   ByVal index As Integer, _ 
   ByVal item As Object _ 
) As Task(Of Integer)
'Usage
 
Dim instance As C1HierarchicalCollectionView(Of T)
Dim index As Integer
Dim item As Object
Dim value As Task(Of Integer)
 
value = instance.InsertAsync(index, item)
[AsyncStateMachine(C1.CollectionView.C1HierarchicalCollectionView`1/d__30)] 
public virtual Task<int> InsertAsync( 
   int index, 
   object item 
)

Parameters

index
The index where the item will be inserted.
item
The item to be inserted.
See Also

Reference

C1HierarchicalCollectionView<T> Class
C1HierarchicalCollectionView<T> Members